/**
 * @author [siwi]
 * @email [siwi@siwi.me]
 * @create date 2017-09-23 11:44:15
 * @modify date 2017-09-23 11:44:15
 * @desc [系统表]
*/


const { mongoose, Schame } = require('../Mongoose')

const Table = new Schame({
    system_name: {
        type: String,
        unique: true,
        required: true,
    },
    system_key: {
        type: String,
        unique: true,
        index: true
    },
    system_domain: {
        type: String,
        default: ''
    },
    system_path: {
        type: String,
        default: ''
    },
    system_nodes: {
        type: Array,
        default: []
    }
})

const System = mongoose.model('System', Table)
module.exports = System